#pragma once
#include "file_server.h"

struct PhotoFileServerOption :public FileServerOption
{
	bool enable_thumbnail;
	std::string thumbnail_directory;
	std::string thumbnail_url;

	std::shared_ptr<FileServerOption> Create() const override {
		return make_shared<PhotoFileServerOption>(*this);
	}
};

class PhotoFileServer :public FileServer {
public:

	PhotoFileServer(PhotoFileServerOption& option);

	void QueryServerFiles(evhttp_request* req) override;

	void RenameServerFile(evhttp_request* req) override;
};